<!DOCTYPE html> 
<html lang="en-US">
<head>
	<title>PGVietnamWorks Admin Panel</title>
	<meta charset="utf-8">
	<link href="<?php echo base_url(); ?>assets/css/admin/global.css" rel="stylesheet" type="text/css">  
	<link rel="stylesheet" type="text/css" href="<?=base_url('assets/css/fancybox/jquery.fancybox-1.3.4.css')?>"/>	
	<script src="<?php echo base_url(); ?>assets/js/jquery.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/admin.js"></script>
	<script src="<?php echo base_url(); ?>assets/ckeditor/ckeditor.js"></script>
	<script src="<?php echo base_url(); ?>assets/ckeditor/adapters/jquery.js"></script>
	<script type="text/javascript" src="<?=base_url('assets/js/jquery.fancybox-1.3.4.js')?>"></script>
</head>
<body>
	<div class="navbar navbar-fixed-top">
	  <div class="navbar-inner">
	    <div class="container">
	      <a href="<?=site_url()?>" target="_blank" class="brand"><strong style="color:#fff">PGVietnamWorks.com</strong></a>
	      <ul class="nav">
				<li <?php if($this->uri->segment(2) == 'dashboard'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url('admin/dashboard'); ?>">Dashboard</a>
				</li>	        
				<?php if(is_admin_role('admin') || is_admin_role('editor')):?>
				<li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Duyệt hồ sơ<b class="caret"></b></a>
	          <ul class="dropdown-menu">
					<li <?php if($this->uri->segment(2) == 'duyethosocanhan'){echo 'class="active"';}?>>
						<a href="<?php echo base_url(); ?>admin/duyethosocanhan">Duyệt hồ sơ cá nhân</a>
					</li>
					<li <?php if($this->uri->segment(2) == 'duyethosotuyendung'){echo 'class="active"';}?>>
						<a href="<?php echo base_url(); ?>admin/duyethosotuyendung">Duyệt hồ nhà tuyển dụng</a>
					</li>
					<li <?php if($this->uri->segment(2) == 'duyettintuyendung'){echo 'class="active"';}?>>
						<a href="<?php echo base_url(); ?>admin/duyettintuyendung">Duyệt tin tuyển dụng</a>
					</li>
	          </ul>
				</li>
				<li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Thanh toán<b class="caret"></b></a>
	          <ul class="dropdown-menu">
					<li <?php if($this->uri->segment(2) == 'chuyenkhoan'){echo 'class="active"';}?>>
						<a href="<?php echo base_url('admin/chuyenkhoan'); ?>">Chuyển khoản</a>
					</li>
					<li <?php if($this->uri->segment(2) == 'sms'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url('admin/sms'); ?>">SMS</a>
	            </li>
					<li <?php if($this->uri->segment(2) == 'online'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url('admin/online'); ?>">Online</a>
	            </li>
	          </ul>
				</li>
				<?php endif;?>
				<?php if(is_admin_role('admin')):?>
				<li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Hệ thống <b class="caret"></b></a>
	          <ul class="dropdown-menu">					
					<li <?php if($this->uri->segment(2) == 'pages'){echo 'class="active"';}?>>
						<a href="<?php echo base_url('admin/pages'); ?>">Pages</a>
					</li>
					<li <?php if($this->uri->segment(2) == 'help'){echo 'class="active"';}?>>
						<a href="<?php echo base_url('admin/help'); ?>">Help</a>
					</li>
					<li <?php if($this->uri->segment(2) == 'messages'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url('admin/messages'); ?>">Tin nhắn</a>
	            </li>
					<li <?php if($this->uri->segment(2) == 'media'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url('admin/media'); ?>">Media</a>
	            </li>														
					<li <?php if($this->uri->segment(2) == 'newsletter'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url('admin/newsletter'); ?>">Newsletter</a>
	            </li>
					<li <?php if($this->uri->segment(2) == 'options'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url('admin/options'); ?>">Tùy chỉnh</a>
	            </li>										
	          </ul>
				</li>
				<?php endif;?>	   
				<li <?php if($this->uri->segment(2) == 'users'){echo 'class="active"';}?>>
				  <a href="<?php echo base_url('admin/users'); ?>">Users</a>
				</li>
				<li>
				  <a href="<?php echo base_url('admin/logout'); ?>">Thoát</a>
				</li>
	      </ul>
	    </div>
	  </div>
	</div>	
	<div class="container top">
		<div class="container">
		<?php
			 //lets have the flashdata overright "$message" if it exists
			$message    = $this->session->flashdata('message');
			$error  = $this->session->flashdata('error');
			if(function_exists('validation_errors') && validation_errors() != '')
			  $error  = validation_errors();
		?>
			 
			 <div id="js_error_container" class="alert alert-error" style="display:none;"> 
				  <p id="js_error"></p>
			 </div>
			 
			 <div id="js_note_container" class="alert alert-note" style="display:none;">
				  
			 </div>
			 
			 <?php if (!empty($message)): ?>
				  <div class="alert alert-success">
						<a class="close" data-dismiss="alert">×</a>
						<?php echo $message; ?>
				  </div>
			 <?php endif; ?>

			 <?php if (!empty($error)): ?>
				  <div class="alert alert-error">
						<a class="close" data-dismiss="alert">×</a>
						<?php echo $error; ?>
				  </div>
			 <?php endif; ?>
		</div>
	<?php if(!empty($page_title)):?>
    <div class="page-header">
        <h1><?php echo  $page_title; ?></h1>
    </div>
    <?php endif;?>